package com.bidbid.manager.auction.bean;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

import com.bidbid.manager.auction.AuctionA;
import com.bidbid.manager.product.Shelf;

public class AuctionBean {
	
	private String aid = null;
	private List<Shelf> shelves = null;

	public AuctionBean(String aid){
		this.aid = aid;
		shelves = new LinkedList<Shelf>();
	}

	public String getAid() {
		return aid;
	}

	public void setAid(String aid) {
		this.aid = aid;
	}

	public List<Shelf> getShelves() {
		return shelves;
	}

	public void setShelves(List<Shelf> shelves) {
		this.shelves = shelves;
	}
	
	public void addShelf(Shelf shelf){
		if(this.shelves == null){
			this.shelves = new LinkedList<Shelf>();
		}
		this.shelves.add(shelf);
	}
	
	public void removeShelf(Shelf shelf){
		if(this.shelves == null){
			this.shelves = new LinkedList<Shelf>();
			return;
		}
		this.shelves.remove(shelf);
	}
	
}
